home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / pctj8404.arc / DELAY.ASM < prev    next >
Assembly Source File  |  1986-09-14  |  512b  |  18 lines

  1. ; ROUTINE TO DELAY SPECIFIED NUMBER OF MILLISECONDS
  2. delay   proc    far
  3. ;
  4.         push    cx              ; save registers
  5. ;
  6. delay1:
  7.         push    cx              ; save counter
  8.         mov     cx,260          ; timing constant
  9. delay2:
  10.         loop    delay2          ; small loop
  11.         pop     cx              ; restore counter
  12.         loop    delay1          ; loop to count milliseconds
  13. ;
  14.         pop     cx              ; restore registers
  15.         ret
  16. ;
  17. delay   endp
  18.